KeyPressed

fun KeyPressed(code: KeyCode, modifiers: KeyModifiers = KeyModifiers(), location: KeyLocation = KEY_LOCATION_UNSPECIFIED, char: Char? = null): KeyPressed
fun KeyPressed(code: KeyCode, modifiers: KeyModifiers = KeyModifiers(), location: KeyLocation = KEY_LOCATION_UNSPECIFIED, char: Char? = null): KeyPressed

Creates a new instance of KeyPressed event with the given parameters.

Since

8.0.0

Parameters

code

The code of the key.

modifiers

The keyboard modifiers.

location

The location of the key on the keyboard.

char

The character of the key.